# -*- coding: utf-8 -*-

from gtk import *
from os import *
from os.path import *

(STEP_SELECTION, STEP_FORMAT, STEP_CROPPING) = range(3)

(COLUMN_THUMB, COLUMN_NAME, COLUMN_TYPE, COLUMN_WIDTH, COLUMN_HEIGHT, COLUMN_NB_COPY, COLUMN_NB_COPY_TEXT, COLUMN_PIXBUF, COLUMN_X, COLUMN_Y) = range(10)

def clamp(x, low, high):
	if x > high:
		return high
	elif x < low:
		return low
	else:
		return x
	
THUMB_SIZE = 120


